import { createApp } from 'vue'
import App from './App.vue'
import { router } from './router/index'
import { pinia } from './pinia'
import 'virtual:windi.css'
import newAxios from './api/newAxios'
import echarts from './plugins/eharth/index'
import { globalRegister } from './plugins/element/index'
import { CaretBottom } from '@element-plus/icons-vue' // 引入 Edit 图标
// import ElementPlus from 'element-plus'

// import Axios from 'axios'
// import { Vue } from 'vue-demi'
// import { createPinia } from './pinia'
const app = createApp(App)
app.component(CaretBottom.name, CaretBottom)
app.use(router).use(pinia).use(globalRegister).mount('#app')
app.config.globalProperties.$http = newAxios
app.config.globalProperties.$echarts = echarts
// app.config.globalProperties.$callApi = callApi
